import request from '@/router/axios'

export function fetchList (query) {
  return request({
    url: '/admin/task/list',
    method: 'get',
    params: query
  })
}

export function fetchThrowList (query) {
  return request({
    url: '/admin/task/throwList',
    method: 'get',
    params: query
  })
}

export function putTask (query) {
  return request({
    url: '/admin/task/put',
    method: 'post',
    data: query
  })
}

export function putThrow (query) {
  return request({
    url: '/admin/task/putThrow',
    method: 'post',
    data: query
  })
}

export function updateTask (query) {
  return request({
    url: '/admin/task/update',
    method: 'post',
    data: query
  })
}

export function downloadTemp (query) {
  return request({
    url: '/admin/task/downloadTemp',
    method: 'get',
    params: query
  })
}

export function putThrowList (query) {
  return request({
    url: '/admin/task/putThrowList',
    method: 'post',
    data: query
  })
}

export function breakStaff (query) {
  return request({
    url: '/admin/task/breakStaff',
    method: 'post',
    data: query
  })
}

export function fetchAllTask (query) {
  return request({
    url: '/admin/task/listAll',
    method: 'get',
    params: query
  })
}

export function fetchMyTask (query) {
  return request({
    url: '/admin/task/listMy',
    method: 'get',
    params: query
  })
}

export function fetchContractView (id) {
  return request({
    url: '/admin/task/contractView',
    method: 'get',
    params: {id:id}
  })
}

export function contractRushSign (query) {
  return request({
    url: '/admin/task/rushSign',
    method: 'get',
    params: query
  })
}

export function contractRevoke (query) {
  return request({
    url: '/admin/task/contractRevoke',
    method: 'get',
    params: query
  })
}

export function contractRevokeAll (query) {
  return request({
    url: '/admin/task/contractRevokeAll',
    method: 'get',
    params: query
  })
}




